package cn.springcloud.fix.es.web.service;

import cn.springcloud.fix.es.web.request.AddCartItemRequest;
import cn.springcloud.fix.es.web.request.DeleteCartItemRequest;
import cn.springcloud.fix.es.web.request.UpdateCartItemRequest;
import cn.springcloud.fix.es.web.response.AddCartItemResponse;
import cn.springcloud.fix.es.web.response.DeleteCartItemResponse;
import cn.springcloud.fix.es.web.response.UpdateCartItemResponse;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface CartItemService {

    AddCartItemResponse add(@Validated @RequestBody AddCartItemRequest request, HttpServletRequest httpServletRequest);

    UpdateCartItemResponse update(@Validated @RequestBody UpdateCartItemRequest request, HttpServletRequest httpServletRequest);

    DeleteCartItemResponse delete(@Validated @RequestBody DeleteCartItemRequest request, HttpServletRequest httpServletRequest);
}
